package com.nce.util;

import java.util.UUID;

/**
 * 帮助类
 * @author gt
 *
 */
public class ExpaiUtil {
	
	/**
	 * 得到UUID值
	 * @return 
	 */
	public static String getUUID(){
		UUID uuid = UUID.randomUUID();
		
		String s = uuid.toString();
//		String uuidStr = s.replace("-", "");
		StringBuffer sb = new StringBuffer(32);
		String uuidStr = sb.append(s.substring(0,8)).append(s.substring(9,13)).append(s.substring(14,18)).append(s.substring(19,23)).append(s.substring(24)).toString();
//		String uuidStr = s.substring(0,8)+s.substring(9,13)+s.substring(14,18)+s.substring(19,23)+s.substring(24); 
		return uuidStr;
	}

}
